package com.example.sx_06.suxuantv;

import android.app.Application;
import com.blankj.utilcode.util.Utils;
import com.example.sx_06.suxuantv.exception_handling.CrashHandler;
import com.umeng.analytics.MobclickAgent;
import com.umeng.commonsdk.UMConfigure;

public class App extends Application {
    static App app;
    @Override
    public void onCreate() {
        super.onCreate();
        Utils.init(this);
        app = this;
        //极光IM初始化(坑比,这里所有进程都需要初始化)
        // 初始化SDK
        UMConfigure.init(this, "5d48da94570df345c9000677", "gf", UMConfigure.DEVICE_TYPE_PHONE, null);
        // 选用AUTO页面采集模式
        MobclickAgent.setPageCollectionMode(MobclickAgent.PageMode.AUTO);
        CrashHandler crashHandler = CrashHandler.getInstance();
        crashHandler.init(this);
    }
  public static   App getApplication(){
    return app;
    }
}
